<form role="form" method="post" enctype="multipart/form-data">
    <input type="hidden" id="id_annonce" name="data[id_annonce]" value="<?php echo $annonce->id_annonce; ?>">
    <div class="row">    
        <div class="col-md-3">
            <?php
            foreach($annonce->attrHtml as $alias => $html) { ?>
            <div class="form-group">
                <?php if(!strpos($html, 'hidden')): ?>
                <label for="<?php echo $alias ?>"><?php echo $annonce->attrLibelle[$alias]; ?></label>
                <?php endif; ?>
                <?php echo $html; ?>
            </div>
            <?php } ?>
        </div>
    </div>
    <div class="row pull-right">
        <button type="submit" class="btn btn-success">Enregistrer</button>
        <button type="button" class="btn btn-danger" onclick="goTo('index.php?controller=annonce')">Annuler</button>
    </div>
</form>


